package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统权限菜单表
 * </p>
 *
 * @author WEN
 * @since 2024-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjAuthor对象", description="系统权限菜单表")
public class ZjAuthor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    @ApiModelProperty(value = "类型：1-导航菜单，2-页面，3-按钮")
    private Integer type;

    @ApiModelProperty(value = "是否按钮：0-否，1-是")
    @TableField("is_button")
    private Boolean button;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单编码")
    private String code;

    @ApiModelProperty(value = "导航路径 ")
    private String path;

    @ApiModelProperty(value = "页面组件路径")
    private String component;

    @ApiModelProperty(value = "是否隐藏：0-否，1-是")
    @TableField("is_hidden")
    private Boolean hidden;

    @ApiModelProperty(value = "标题名称")
    private String title;

    @ApiModelProperty(value = "标题名称")
    private String icon;

    @ApiModelProperty(value = "是否保持活动：0-否1，1-是")
    @TableField("is_keep_alive")
    private Boolean keepAlive;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "排序，值越小，越靠前")
    private Integer sort;

    @ApiModelProperty(value = "是否禁用：0-否，1-是")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
